home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2001 Haziran / CHIP Haziran2001.iso / prog / haziran / 20 / setup.exe / {app} / plugins / XQ Logoff Options 1.xpl < prev    next >
Encoding:
XSetup plugin  |  2001-03-28  |  1.2 KB  |  54 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Shutdown\Windows 9x/ME\00) Shutdown Menu"
  5. "UIPATH 2"="Appearance\Start menu\Options"
  6. "NAME"="Windows 9x Logoff Options"
  7. "VERSION"="1.23"
  8. "OSVERSION"="10100"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Show "Restart in MS-DOS mode" in logoff menu"
  11. "DESCRIPTION 1"="If you want to hide the selection to restart in MS-DOS mode, deactivate the first option."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16. "COMMENT 2"="Thanks to AXCEL216 for the setting and CptSiskoX for his help!"
  17.  
  18.  
  19. sNRM="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WinOldApp\NoRealMode" 'DWORD
  20. Sub Plugin_Initialize 
  21.     i=RegReadValue(sNRM)
  22.     if i=0 or IsEmpty(i) then 
  23.        SetUIElement 1,true
  24.     end if
  25. End Sub
  26.  
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31.  
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  b=GetUIElement(1)
  35.  if b=true then
  36.     s=RegReadValue(sNRM)
  37.     if isempty(s)=false then
  38.        Call RegDeleteValue(sNRM)
  39.     end if
  40.  else
  41.   Call RegWriteValue(sNRM,1,2)
  42.  end if
  43.  
  44.  
  45.  Call Restart()
  46. End Sub
  47.  
  48.  
  49. Sub Plugin_Terminate 
  50. End Sub
  51.  
  52.  
  53.  
  54.